//package com.itheima.filter;
//
//import jakarta.servlet.*;
//import jakarta.servlet.annotation.WebFilter;
//import lombok.extern.slf4j.Slf4j;
//
//import java.io.IOException;
//
//@Slf4j
//@WebFilter("/*")
//public class DemoFilter implements Filter {
//
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//        log.info("DemoFilter init");
//    }
//
//    @Override
//    public void destroy() {
//        log.info("DemoFilter destroy");
//    }
//
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        log.info("DemoFilter doFilter 放行前");
//
//        filterChain.doFilter(servletRequest, servletResponse);
//
//        log.info("DemoFilter doFilter 放行后");
//    }
//}
